package com.beijiteshop.shop.ui.home.repo

import com.beijiteshop.libcommon.network.ext.BaseRsp
import com.beijiteshop.shop.model.api.response.PageDataBean
import com.beijiteshop.shop.model.api.response.ProductBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/1 16:48
 * @Description 首页接口
 */
interface HomeService {

    /**
     * 获取打折促销商品列表
     */
    @GET("/api/goods/getdiscountgoods")
    fun getDiscountGoods(@Query("page") page: Int): Call<BaseRsp<PageDataBean<MutableList<ProductBean>>>>

    /**
     * 获取平价商品列表
     */
    @GET("/api/goods/getboutiquegoods")
    fun getProductList(@Query("page") page: Int): Call<BaseRsp<PageDataBean<MutableList<ProductBean>>>>
}